"""
SECUI MF2 Series Device Pack Adapter
"""

cli.config.prompt.regex = r'\[[^\[]+@.*\]#'
cli.config.cmd_send.verbatim_wait = False

config.data = {
    'interface':           'cat /secui/etc/interface.conf',
    'ip_route':            'cat /secui/etc/ip_route.conf',
    'serviceobject':       'cat /secui/etc/serviceobject.conf; echo',
    'sgroupobject':        'cat /secui/etc/sgroupobject.conf; echo',
    'networkobject':       'cat /secui/etc/networkobject.conf; echo',
    'hostobject':          'cat /secui/etc/hostobject.conf; echo',
    'groupobject':         'cat /secui/etc/groupobject.conf; echo',
    'userobject':          'cat /secui/etc/userobject.conf; echo',
    'admins':              'cat /secui/etc/admins.conf; echo',
    'fwrules':             'grep \'inuse.*fwrules\' /secui/etc/rulefiles.conf | sed -n -r \'s/.*name="([^"]*)".*/\\1/p\' | xargs cat',
    'natrules':            'grep \'inuse.*natrules\' /secui/etc/rulefiles.conf | sed -n -r \'s/.*name="([^"]*)".*/\\1/p\' | xargs cat'
}
